{extend name="base:base" /}
{block name="body"}
<!-- =======================以上为公共头部 ======================  -->
<link href="__THEME__/css/inner.css" rel="stylesheet" type="text/css">
<div class="bread">
    <div class="bread_text wrap">
        <span>当前位置：<a href="javascript:;">首页</a>
             <?php
            $bread = help_breadcrumb_goods($id);
            foreach ($bread as $key => $value) {
                ?>
                <span>&gt;</span> <a href="<?php echo my_url('index/index/lists_goods?id=' . $key); ?>"><?php echo $value; ?></a>
            <?php } ?>
    </div>
</div>
<!--inner start-->
<div class="inner wrap clearfix">
    <aside class="left">
        <div class="navbox">
            <div class="nav-title">
                <h2>产品中心</h2>
                <span class="icon_dot"></span>
            </div>
            <div class="nav-con">
                <?php
                $category = db('goods_cat')->order('listorder')->select();
                // 转多维
                $category = node_merge($category);
                foreach ($category as $key => $value) {
                    ?>
                    <dl>
                        <dt class="selected">
                            <span class="common-img flex minus"></span>
                            <a href="<?php echo my_url('index/index/lists_goods?id=' . $value['id']) ?>"><?php echo $value['title'] ?></a>
                        </dt>
                    </dl>
                <?php } ?>
            </div>
        </div>
    </aside>    
    <div class="right">
        <div class="title">
            <h1><?php echo $title; ?></h1>
        </div>
        <div class="content">
            <ul class="product_list">
                <?php
                foreach ($lists as $key => $value) {
                    ?>
                    <li>
                        <dl class="clearfix">
                            <dt><a href="<?php echo my_url('index/index/views_goods?id=' . $value['id']) ?>"><img src="<?php echo img_resize($value['image'], 200, 200) ?>" title="<?php echo $value['title'] ?>"></a></dt>
                            <dd>
                                <h3>
                                    <a href="<?php echo my_url('index/index/views_goods?id=' . $value['id']) ?>"><?php echo $value['title'] ?></a>
                                </h3>
                                <div class="pro_introduce">
                                    <?php echo $value['description'] ?>
                                </div>
                            </dd>
                            <a class="product_more" href="<?php echo my_url('index/index/views_goods?id=' . $value['id']) ?>">了解更多</a>	
                        </dl>
                    </li>
                <?php } ?>
            </ul>
        </div><!-- /listbox -->
        <!-- 分页 -->
        <div class="page hidden_xs clearfix">
            <?php echo $pager; ?>
        </div>
        <!-- 手机版pages-->
        <div class="phone_page hidden_lg">
            <a href="javascript:;">上一页</a>    
            <a href="javascript:;" class="active">下一页</a>    
        </div>
    </div>
</div>
<!--inner end-->
{/block}